import Vue from 'vue'
import Router from 'vue-router'
import VueResource from 'vue-resource'

Vue.use(VueResource)
Vue.use(Router)

import header from '@/components/header/header'
import Login from '@/components/Login/Login'
import Words from '@/components/main/Words'
import AddWord from '@/components/main/AddWord'
import UpdWord from '@/components/main/UpdWord'
import UpdatePassword from '@/components/password/UpdatePassword'



export default new Router({
  routes: [
    {
      path: '/header',
      name: 'header',
      component: header
    },
    {
      path:'/',
      name:'Login',
      component:Login
    },
    {
      path:'/Words',
      name:'Words',
      component:Words
    },
    {
      path:'/AddWord',
      name:'AddWord',
      component:AddWord
    },
    {
      path:'/UpdWord',
      name:'UpdWord',
      component:UpdWord
    },
    {
      path:'/UpdatePassword',
      name:'UpdatePassword',
      component:UpdatePassword
    }
  ]
})
